<%@ include file="/WEB-INF/jsp/header.jsp" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>

<h1>Registrace nového uživatele</h1>

<form:form modelAttribute="user" action="registration" method="POST">
  <table>
  	<tr><td>${errMsg}</td></tr>
    <tr>
      <td>
        Uživatelské jméno: <form:errors path="userName" cssClass="errors"/>
      </td>
      <td>
        <form:input path="userName" size="30" maxlength="80"/>
      </td>
    </tr>
    <tr>
      <td>
        Jméno a příjmení: <form:errors path="fullName" cssClass="errors"/>
      </td>
      <td>
        <form:input path="fullName" size="30" maxlength="80"/>
      </td>
    </tr>
    <tr>
      <td>
        Heslo: <form:errors path="password" cssClass="errors"/>
      </td>
      <td>
        <form:password path="password" size="30" maxlength="80"/>
      </td>
    </tr>
    <tr>
      <td colspan="2">
      	<p class="submit"><input type="submit" value="Přidat uživatele"/></p>
      </td>
    </tr>
  </table>
</form:form>


<%@ include file="/WEB-INF/jsp/footer.jsp" %>